added debug up/down key level switching