You can use either, but, there are some considerations.
When and where ever you use a string like this there is potential for mistake, if you have multiple locations in your code where ("up") was used for example. The compiler isn’t going to warn you about a type (uup) whilst you are coding. However, if you entered KeyCode.UupArrow you would be getting an error instantly.
The second paragraph on the page you linked to is very important also - at this stage on Number Wizard it doesn’t really matter too much, it is after all a gentle introduction, however, later on, should you want to allow a player to configure keys for a game, lets say for left / right / up / down movement, you can use the Input.GetAxis method instead, this will save you having to deal with checking strings or keycodes for all of the possibilities.
Ironically, these are still via “strings” so there is the potential for mistake, but a hugely reduced one.