worked on keyboard interception for commands