fixed multiple keypresses