fixing keyboard event information
fix home/end
added before_filter for EventedVariable