Attach keypress event for dropdows and inputs within a view scope