Prevent default key behavior when handled