Merge "Fix key debounce (was too aggressive and buggy) and dismiss mini keyboard on cancel event."