set up keyboard listeners, now to implement the methods