Key input handling, changes in layout