def METHOD_NAME(self, canvas, keyname):
    if keyname == 'x':
        self.fitsimage.onscreen_message("Moving to regular mode",
                                        delay=1.0)
        self.release()
    elif keyname == 'c':
        self.clear()
        return True
    fi = canvas.fitsimage
    data_x, data_y = fi.get_last_data_xy()
    ra, dec = self.get_wcs(data_x, data_y)
    print("key %s pressed at data %d,%d ra=%s dec=%s" % (
        keyname, data_x, data_y, ra, dec))
    return True