Fixes a bug where whitespace characters in an expression prevent the detection of keyup events.