Remove OnBackPressed and create generic EventHandler annotation
Add hasAnnotation test