added exit to keyboard controller