fix for keypresses