fix jiggling in Firefox when using controller with keyboard (fixes #96)