Debounce to avoid keyboard stutter.