Some laptops override the functionality of the default function keys to provide other features (such as adjusting the brightness etc.). However, this can be rolled back.
If you’re using a Mac, please ensure that you have switched your F1-F11 keys to function as standard function keys.
If you’re using Windows, try the instructions in this article.