updated extensions
Changed whilepressed to whenpressed