Show and hide cursor.