Fix frame-stepping with cursor keys on OS X.