Actor Chris Hemsworth had to brush up on his typing skills to portray a computer hacker in Blackhat.

The Thor star reveals he had to improve his flow to perfect his role as a keyboard whizz in the new thriller.

He tells U.S. breakfast show Today, "I had the 100 pecks style of typing, which is pretty aggressive and unappealing, but I had to develop more fluid movements on the keyboard and then understanding code and writing code, it was like being back in math or computer science class in school.

"We started (from tenth-grade typing class) and then I worked my way through it. I worked with a number of guys who are incredibly intelligent, high up in the math, science world and it was interesting. It was essential, I think, to understand where this guy came from and the world he was existing in. It's another language."

More: Mr Turner Gives Timothy Spall The Role He Deserves In Artist Biopic ...

Huffington Post: Watch Michael Mann & Chris Hemsworth Explain 'Blackhat'