setup for keyboard control 