keyboard control working