started methods to handle key events and what not