← #620 – Why Are There So Many KeyPress Events?
Below is an example of handling both PreviewKeyUp and KeyUp events. The PreviewKeyUp is used to completely block a particular key (the letter ‘E’). The KeyUp event is used to trigger an update to a calculated property.
// E's are not allowed !