fixed keypress allowing navigation wrapping