Hi Haoyun,
Let me give you the answers first and then some explanations (which you should feel free to skip over).
For the first question, yes, only if (1) you set the "multiple" parameter to false like below, and (2) there are no other responses on the same trial.
For the second question, what you described is a bit unusual. Correct vs incorrect only makes sense in the context of a forced-choice task, and the keypress response isn't really meant to achieve that. If you are trying to avoid the buttons rendered by the choice response (
https://help.findingfive.com/api/responses.html#choice), there's a "keyboard_only" mode which lets participants respond by pressing keys instead. With the choice response, you can easily record the targets and provide feedback to the participants, as they are standard features. Would that be useful for implementing your experiment?
--------- A bit explanation on the keypress response ------------
The keypress response is first and foremost a background response, meaning that its expected behavior is to collect participant responses
passively. The prototypical use case is to capture the random keystrokes produced by participants as a metric of "impatience".
So, for your first question, using the keypress to advance trials works under a limited situation, where the trial "has nothing else to do" (i.e., its whole purpose is just waiting for a single key press). For your second question, what you want the keypress response to do somewhat violates the design purpose (which isn't necessarily a bad thing), because the fact that a keypress has collected data, in general, should not affect the normal progression of trials, letting alone providing feedback.
Hope this is helpful! Happy to discuss further.