added basic keyboard control