enable keypress option