cleaning up prototype code - control keys.