fix camera jitter after keypress bug