Hi smexhy,

My first question... are you sure Key is equal to 'F'? (i.e. upper case F). Unless you've got caps lock on or are holding down the shift, key will be equal to 'f' (i.e. lower case F) when you press the F key.

I'm not sure there is anything else wrong with your code, but without the full context it's a bit difficult to tell.


Hope this helps