fixes for keyboard controls