Added class Keyboard for handling key input.