Click to run and edit this dialog:

Run in SolveIt

Using Keyboard Shortcuts for Modal Interfaces

In the previous tutorial, we saw how to switch between selection and editor modes by using the mouse (to click on the header bar of a message, or to click on submit in the editor). Now, we'll learn different ways to do the same thing: using keyboard shortcuts instead of the mouse!

Review of how to use your mouse to open and close the editor:

CleanShot 2026-07-12 at 16.19.30@2x.png

Then click "submit".

CleanShot 2026-07-12 at 16.26.24@2x.png

If you are happy using your mouse, you can stick with that approach! Some people prefer keyboard shortcuts, since they are often faster, once you get the hang of them.

Keyboard shortcuts

To find the keyboard shortcut for a button in SolveIt, you can hover your mouse over the button and a tooltip will appear. This means that pressing Escape will have the same effect as clicking on the ❌ with your mouse.

CleanShot 2026-07-13 at 16.58.52@2x.png

Going from Selection Mode to Editor Mode

You can tell you are in selection mode when a selected message has a blue rectangle around it and there is NOT a blinking cursor in the editor at the bottom.

CleanShot 2026-07-13 at 13.06.01@2x.png

In selection mode, you can navigate through messages with the arrow keys ⬇ and ⬆.

Push ⬇ to go to the message below.

Hit return and the editor will open.

Write your favorite season below:

My favorite season is ....

How to tell you are in editor mode:

CleanShot 2026-07-13 at 12.54.33@2x.png

Going from Editor Mode back to Selection Mode

Previously, to leave the editor and go back to selection mode, we clicked on the blue Submit button or ❌.

Instead, we can use the keys ⌘ + Return (on a Mac) or Ctrl + Return (on Windows) to submit our message.

CleanShot 2026-07-13 at 17.04.22@2x.png

The tooltip says C + Return, with C meaning ⌘ on Mac and Ctrl on Windows.

Or we can use Esc to leave the editor without submitting.

The code below hasn't been run yet. Use ⬇ to navigate to the below message.

Hit Return to enter edit mode.

Complete the formula for area of the circle (** means raise to the exponent in python).

Use Ctrl + Return to submit it.

import math

pi = math.pi
radius = 4
area = radius ** 2  # Finish this line
print(area)

Now let's edit a message, but not run it!

Below is a prompt asking for the weather in Berlin. Press Return to edit it. Then use Esc to go back to selection mode WITHOUT submitting the updated prompt.

CleanShot 2026-07-13 at 15.18.13@2x.png

You can try it here:

What is the weather right now in Berlin?

Let me check the current weather in Berlin for you.

web_answer(pr="What is the current weather in Berlin ri…", qs="['current weather Berlin today', 'Berlin…")→"Based on the search results, the current…"
{
  "id": "chatcmpl-tool-96239ef49d7aa646",
  "name": "web_answer",
  "args": {
    "pr": "What is the current weather in Berlin right now?",
    "qs": "['current weather Berlin today', 'Berlin weather now July 2026']"
  },
  "result": "Based on the search results, the current weather in Berlin is as follows:\n\n- **RealFeel® Temperature**: 63°F (17°C), described as \"Pleasant\" with 81% humidity, 31% cloud cover, and winds of 7 mph from AccuWeather's current conditions page[^1].\n- **Feels-like temperature**: 21°C (70°F) according to The Weather Network[^2].\n- **Observed conditions**: \"Passing clouds\" with a feels-like temperature of 78°F (26°C) and a forecast of 84°F/63°F (29°C/17°C) from timeanddate.com[^3].\n\nNote that readings vary slightly between sources due to different measurement times and algorithms. For a detailed hour-by-hour outlook, you can check the Berlin hourly forecast on WeatherBug[^4]. For an 8-day forecast covering the next week, see Berlin’s official weather page[^5].\n\n[^1]: AccuWeather Current Weather - Berlin: https://www.accuweather.com/en/de/berlin/10178/current-weather/178087\n[^2]: The Weather Network Current Conditions - Berlin: https://www.theweathernetwork.com/en/city/de/berlin/berlin/current\n[^3]: timeanddate.com Weather - Berlin: https://www.timeanddate.com/weather/germany/berlin\n[^4]: WeatherBug Hourly Forecast - Berlin: https://www.weatherbug.com/weather-forecast/hourly/berlin-berlin-gm?day=today\n[^5]: Berlin.de 8-Day Forecast: https://www.berlin.de/en/weather/forecast/"
}

Right now in Berlin it's mostly cloudy with passing clouds. Depending on the source:

  • Temperature: around 17–21°C (63–70°F), with a "feels like" up to ~26°C
  • Humidity: ~81%
  • Wind: light, around 7 mph
  • Conditions: passing clouds, generally pleasant

Sources vary a bit since they report at slightly different times, but overall it's a mild, partly cloudy day in Berlin.

$0.0407

total=33,886 | in=33,676 | out=210 | cached=49.4% | $0.0407 | glm-5p2