Input a code representing a device function